<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="{$appConfigs[member_title]}">
    <title>订单详情-用户中心</title>
    {run $pageName='order'}<!--用于加载对应页面的css-->
    {include member.inc.csslink}
</head>
<body>
{include member.inc.header}
<main class="max-w">
    <div class="breadcrumb">您现在的位置：<a href="/member/order/index">订单管理</a> > <a href="/member/order/index">订单列表</a> > 订单详情 </div>
    {include member.inc.leftNav}
    <div class="main order">
        <section class="panel progress">
            <div class="header"><h1>订单详情</h1></div>
            <ul class="description clearfix  {if $item[pay_way]==$PAY_WAY_OFFLINE}offline{else}online{/if} step{$item[step]}">
                {if $item[order_status]!=$ORDER_STATUS_CANCELED}
                <li class="step1">
                    <img src="/res/mpe/img/blank.gif"/>
                    <span class="circle"></span>
                    <dl>
                        <dt>下单成功</dt>
                        <dd>{$item[order_time]}</dd>
                    </dl>
                </li>
                <li class="step2">
                    <img src="/res/mpe/img/blank.gif"/>
                    <span class="circle"></span>
                    <dl>
                        <dt>买家付款</dt>
                        <dd>{$item[pay_time]}</dd>
                    </dl>
                </li>
                {if $item[pay_way]==$PAY_WAY_OFFLINE}
                <li class="step2-1">
                    <img src="/res/mpe/img/blank.gif"/>
                    <span class="circle"></span>
                    <dl>
                        <dt>卖家确认收款</dt>
                        <dd>{$item[pay_time]}</dd>
                    </dl>
                </li>
                {/if}
                <li class="step3">
                    <img src="/res/mpe/img/blank.gif"/>
                    <span class="circle"></span>
                    <dl>
                        <dt>卖家发货</dt>
                        <dd>{$item[delivery_time]}</dd>
                    </dl>
                </li>
                <li class="step4">
                    <img src="/res/mpe/img/blank.gif"/>
                    <span class="circle"></span>
                    <dl>
                        <dt>确认收货</dt>
                        <dd>{$item[confirm_delivery_time]}</dd>
                    </dl>
                </li>
                {/if}
                {if $item[order_status]==$ORDER_STATUS_CANCELED}
                <li class="step1 pass">
                    <img src="/res/mpe/img/blank.gif"/>
                    <span class="circle"></span>
                    <dl>
                        <dt>下单成功</dt>
                        <dd>{$item[order_time]}</dd>
                    </dl>
                </li>
                <li class="step1-1 now">
                    <img src="/res/mpe/img/blank.gif"/>
                    <span class="circle"></span>
                    <dl>
                        <dt>订单取消</dt>
                        <dd>{$item[log][0][date]}</dd>
                    </dl>
                </li>
                {/if}
            </ul>
        </section>
        <section class="panel logistics">
            <div class="header">订单轨迹</div>
            <ul>
                {loop $item[log] $k $v}
                <li{if $k==0} class="now"{/if}>
                    <span class="time">{$v[date]}</span>
                    <span class="text">{$v[content]}</span>
                </li>
                {/loop}
            </ul>
        </section>
        <section class="panel addr_info">
            {if $item[shipping_way]==$SHIPPING_WAY_SELLER}
            <div class="header">配送信息</div>
            <fileset>
                <div class="row">
                    <div class="col2"><label>送货人姓名：</label><span>{$item[shipping][shipping_fullname]}</span></div>
                    <div class="col2"><label>手机号码：</label><span>{$item[shipping][shipping_mobile]}</span></div>
                </div>
                <div class="row">
                    <div class="col2"><label>送货车辆牌号：</label><span>{$item[shipping][shipping_car_card]}</span></div>
                    <div class="col2"><label>送货人身份证：</label><span>{$item[shipping][shipping_id_card]}</span></div>
                </div>
                <div class="row">
                    <div class="col2"><label>送货日期：</label><span>{if $item[shipping][shipping_time]}<?php echo date('Y-m-d',strtotime($item[shipping][shipping_time])) ?>{/if}</span></div>
                    <div class="col2"><label>发货补充：</label><span>{$item[shipping][shipping_remark]}</span></div>
                </div>
            </fileset>
            {else}
            <div class="header">交收信息</div>
            <fileset>
                <div class="row">
                    <div class="col2"><label>联系人：</label><span>{$item[address][consignee]}</span></div>
                    <div class="col2"><label>联系电话：</label><span>{$item[address][contact_mobile]}</span></div>
                </div>
                <div class="row">
                    <div class="col2"><label>交收仓库：</label><span>{$item[address][name]}</span></div>
                    <div class="col2"><label>交收地址：</label><span>{$item[address][address]}</span></div>
                </div>
            </fileset>
            {/if}
        </section>
        <section class="panel addr_info">
            <div class="header">订单信息</div>
            {if $item[shipping_way]==$SHIPPING_WAY_SELLER}
            <fileset>
                <div class="row">
                    <div class="col2"><label>收货人：</label><span>{$item[address][consignee]}</span></div>
                    <div class="col2"><label>订单编号：</label><span>{$item[order_no]}</span></div>
                </div>
                <div class="row">
                    <div class="col2"><label>联系电话：</label><span>{$item[address][contact_mobile]}</span></div>
                    <div class="col2"><label>邮编：</label><span>{$item[address][zip_code]}</span></div>
                </div>
                <div class="row">
                    <div class="col1"><label>收货地址：</label><span>{$item[address][address]}</span></div>
                </div>
            </fileset>
            {else}
            <fileset>
                <div class="row">
                    <div class="col2"><label>提货人：</label><span>{$item[shipping][shipping_fullname]}</span></div>
                    <div class="col2"><label>订单编号：</label><span>{$item[order_no]}</span></div>
                </div>
                <div class="row">
                    <div class="col2"><label>联系电话：</label><span>{$item[shipping][shipping_mobile]}</span></div>
                    <div class="col2"><label>车牌号：</label><span>{$item[shipping][shipping_car_card]}</span></div>
                </div>
                <div class="row">
                    <div class="col2"><label>提货人身份证：</label><span>{$item[shipping][shipping_id_card]}</span></div>
                    <div class="col2"><label>提货日期：</label><span>{if $item[shipping][shipping_time]}<?php echo date('Y-m-d',strtotime($item[shipping][shipping_time])) ?>{/if}</span></div>
                </div>
                <div class="row">
                    <div class="col2"><label>提货补充：</label><span>{$item[shipping][shipping_remark]}</span></div>
                </div>
            </fileset>
            {/if}
            <div class="hr"></div>
            <fileset>
                <div class="row">
                    <div class="col2"><label>支付方式：</label><span>{$item[payway]}</span></div>
                    <div class="col2"><label>交收方式：</label><span>{$item[shippingway]}</span></div>
                </div>
                <div class="row">
                    <div class="col1"><label>商品总额：</label><span class="c-primary">￥{$item[actual_amount]}</span></div>

                </div>
            </fileset>
            <table class="table">
                <thead><tr>
                    <td width="300">商品</td>
                    <td>货号</td>
                    <td>销售价(元/{$pro_unit})</td>
                    <td>购买数量({$pro_unit})</td>
                    <td>金额(元)</td>
                </tr></thead>
                <tbody>
                    {loop $item[product] $v}
                    <tr>
                        <td class="break-word">{$v[product_title]}</td>
                        <td class="break-word">{$v[product_no]}</td>
                        <td>￥{$v[sales_price]}</td>
                        <td>{$v[product_quantity]}</td>
                        <td class="c-danger">￥{$v[product_actual_price]}</td>
                    </tr>
                    {/loop}
                </tbody>
            </table>
            <form class="form-block" id="formDetail" action="/member/order/detail" method="post">
                <input type="hidden" name="id" value="{$item[id]}">
                <div class="form-row">
                    卖家留言：{$item[sellers_remark]}<br/>
                    <!--{if $item[order_status]!=$ORDER_STATUS_CANCELED && $item[buyers_remark]==''}<label>买家留言</label>
                    <textarea name="post[buyers_remark]" class="full">{$item[buyers_remark]}</textarea>
                    {else}
                    {/if}-->
                    买家留言：{$item[buyers_remark]}
                </div>
                <div class="btn-group">
                    <!--{if $item[order_status]!=$ORDER_STATUS_CANCELED && $item[buyers_remark]==''}<input type="submit" value="确认" class="btn-primary btn-lg">{/if}-->
                    <input type="button" value="返回" class="btn-info btn-lg" onclick="history.back();">
                </div>
            </form>
        </section>
    </div>
</main>


{include member.inc.footer}
{include member.inc.script}

<script>
   seajs.use('common',function(common){
       common.leftNav({dl: 1,dd:0});
   });
</script>
{include member.inc.foot_hook}
</body>
</html>
